/*
** my_revstr.c for my_revstr in /home/labonn_c//Documents/piscine/Jour_O6
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Mon Oct 10 10:54:41 2011 christophe labonnemartinez
** Last update Mon Oct 10 11:31:52 2011 christophe labonnemartinez
*/

char	newswap(char *a, char *b)
{
  char	tmp;

  tmp = *a;
  *a = *b;
  *b = tmp;
}

char	*my_revstr(char *str)
{
  int	i;
  int	j;

  i = 0;
  j = my_strlen(str) - 1;
  while (j != my_strlen(str) / 2)
    {
      newswap(&str[i], &str[j]);
      j = j - 1;
      i = i + 1;
    }
  return (str);
}
